package com.csproj.dispatch.repository;

import com.csproj.dispatch.domain.PositionInfo;
import org.springframework.stereotype.Repository;

import org.springframework.data.jpa.repository.*;

import java.util.List;


/**
 * Spring Data JPA repository for the PositionInfo entity.
 */
@SuppressWarnings("unused")
@Repository
public interface PositionInfoRepository extends JpaRepository<PositionInfo, String> {

    public PositionInfo findFirstByDispatchIdOrderByReportTimeDesc(String dispatchId);

    public List<PositionInfo> findAllByDispatchIdOrderByReportTime(String dispatchId);

}
